<%--
  Created by IntelliJ IDEA.
  User: marvelous
  Date: 2020/7/21
  Time: 11:10 上午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>Login</title>
    <script type="text/javascript" src="/js/jquery.min.js"></script>

<%--    <script>--%>
<%--        $(function () {--%>
<%--            $("#submitBtn").bind("click", function () {--%>
<%--                let data = $("#loginForm").serialize();--%>
<%--                $.ajax({--%>
<%--                    url: '/login',--%>
<%--                    type: 'POST',--%>
<%--                    data: data,--%>
<%--                    success: function (data) {--%>
<%--                        alert(data);--%>
<%--                    }--%>
<%--                })--%>

<%--            })--%>
<%--        })--%>
<%--    </script>--%>
</head>
<body>
<form id="loginForm" method="post" action="/login">
    用户名：<input type="text" name="username" required>
    <br/>
    密码：<input type="password" name="password" required>
    <br/>
    <input id="submitBtn" type="submit" value="登录">
</form>
</body>
</html>
